package util; 

import java.util.List;

import org.springframework.stereotype.Repository;
/**
 * 分页设置
 * @author Administrator
 *
 * @param <T>
 */
@Repository
//分页工具类
public class PageUtil<T> {
	
	private int pageIndex;  //当前页索引
	private int pageSize;   //每页数量多少
	private int count;      //总记录数
	private int pageNumber; //总页数
	public List<T> list;    //当前页的集合
	
	
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	@Override
	public String toString() {
		return "PageUtil [pageIndex=" + pageIndex + ", pageSize=" + pageSize + ", count=" + count + ", pageNumber="
				+ pageNumber + ", list=" + list + "]";
	}
	

}
